/**   
* @Title: QueryController.java 
* @Package com.csis.system.controller 
* @Description: TODO
* @author dailey  
* @date 2012-10-7
* @version V1.0   
*/
package com.csis.system.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.csis.framework.domain.FormBean;

/**
 * @author dailey
 *
 */
@Controller
@RequestMapping("/system/query")
public class QueryController {

	@RequestMapping("/toIndex")
	public String index() {
		return "/system/manager/base/query/index";
	}

	@RequestMapping("/statis/toIndex")
	public String advanceIndex() {
		return "/system/manager/statis/index";
	}

	@RequestMapping("/statis/sale/list")
	public String querySale(Model model) {
		FormBean<?> formBean=new FormBean<Object>();
		formBean.setIsAll(true);
		model.addAttribute("formBean", formBean);
		return "/system/manager/sale/form/listsale";
	}

	@RequestMapping("/statis/stock/list")
	public String queryStock(Model model) {
		FormBean<?> formBean=new FormBean<Object>();
		formBean.setIsAll(true);
		model.addAttribute("formBean", formBean);
		return "/system/manager/buy/liststock";
	}

	@RequestMapping("/statis/entry/list")
	public String queryEntry(Model model) {
		FormBean<?> formBean=new FormBean<Object>();
		formBean.setIsAll(true);
		model.addAttribute("formBean", formBean);
		return "/system/manager/io/entry/listentry";
	}

	@RequestMapping("/statis/pick/list")
	public String queryPick(Model model) {
		FormBean<?> formBean=new FormBean<Object>();
		formBean.setIsAll(true);
		model.addAttribute("formBean", formBean);
		return "/system/manager/io/pick/listpick";
	}

}
